package cn.ztr.ymcc.domain;

import cn.ztr.ymcc.util.VerifyCodeUtils;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 登录表
 * </p>
 *
 * @author ztr
 * @since 2023-02-24
 */
@Data
@Accessors(chain = true)
@TableName("t_login")
public class Login extends Model<Login> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String username;

    private String password;

    /**
     * 0是后台，1是前台
     */
    private Integer type;

    private Boolean enabled = true;

    private Boolean accountNonExpired = true;

    private Boolean credentialsNonExpired = true;

    private Boolean accountNonLocked = true;

    /**
     * 对应Oauth2客户端详情ID
     */
    private String clientId;

    private String clientSecret;

    private String avatar = "https://tupian.qqw21.com/article/UploadPic/2019-1/201912022194283238.jpg";


}
